﻿using stdCall;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using stdCall.TotalService;
using stdCall.Resource;

namespace stdCall
{
    /// <summary>
    /// 课程设置对话框
    /// </summary>
    public partial class CourseDialog : Form
    {
        /// <summary>
        /// 
        /// </summary>
        public CourseDialog()
        {
            InitializeComponent();
            ResourseLoader rl=new ResourseLoader();
            rl.loadCourseID();
            textBox_courseID.Text = ResourseLoader.CourseID.ToString();
        }

        private void button_ok_Click(object sender, EventArgs e)
        {
            try
            {
            	int courseid = int.Parse(textBox_courseID.Text);
                new ResourseLoader().setCourseID(int.Parse(textBox_courseID.Text));
                this.Dispose();
            }
            catch (System.Exception ex)
            {
                ThreadExceptionDialog td = new ThreadExceptionDialog(ex);
                td.ShowDialog();
            }
        }

       
    }
}
